﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Castle.ActiveRecord;
using Castle.ActiveRecord.Queries;
using NHibernate.Criterion;
using System.Collections;

/// <summary>
/// Summary description for Tour
/// </summary>
namespace LIB
{
    [ActiveRecord("Users")]
    public class Users_Info : ActiveRecordBase<Users_Info>
    {
        private int _id;
        private string _username;
        private string _password;
        private string _fullname;
        private string _avatar;
        private DateTime _lastLogin;
        
        [PrimaryKey(PrimaryKeyType.Native)]
        public int id
        {
            get { return _id; }
            set { _id = value; }
        }
        [Property]
        public string username
        {
            get { return _username; }
            set { _username = value; }
        }
        [Property]
        public string password
        {
            get { return _password; }
            set { _password = value; }
        }
        [Property]
        public string fullname
        {
            get { return _fullname; }
            set { _fullname = value; }
        }
        [Property]
        public string avatar
        {
            get { return _avatar; }
            set { _avatar = value; }
        }
        [Property]
        public DateTime lastLogin
        {
            get { return _lastLogin; }
            set { _lastLogin = value; }
        }
     
      
    }
}
